package com.astronomy.article.mapper;

import com.astronomy.article.pojo.Article;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface ArticleMapper extends Mapper<Article> {

    @Update("UPDATE tb_article SET state=1 WHERE id=#{id};")
    void updateState(String id);
    @Update("UPDATE tb_article SET thumbup=thumbup+1 WHERE id=#{id};")
    void addThumbup(String id);
}
